﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using DTOSingTowerMall;

namespace BLSingTowerMall
{
    public partial class Campaign : ICampaign
    {
    }


    public partial class Store : IStore
    {
    }
    public partial class Block : IBlock
    {
        public bool IsValid{ get; set;}
        public string ErrorMessage { get; set; }

        public Block()
        {
            IsValid= true;
        }

        void OnChangingBlockID(int value)
        {
            if(value<=0)
            {
                IsValid=false;
                ErrorMessage = "Invalid Block ID";
            }
        }

        void OnChangingLocation(string value)
        {
            if (string.IsNullOrEmpty(value) || value.Length!=2)
            {
                IsValid = false;
                ErrorMessage = "Invalid Location";
            }
        }
    }

    public partial class EventHallBooking : IEventHallBooking
    {
    }

    public partial class Category : ICategory
    {
    }

    public partial class SubCategory : ISubCategory
    {
    }

    public partial class UserDetail : IUserDetail
    {
    }

    public partial class UserDetail : IUserDetail
    {
    }

    public partial class EventHall : IEventHall
    {
    }

    public partial class Feedback : IFeedback
    {
    }

    public partial class Level : ILevel
    {
    }

    public partial class Transaction : ITransaction
    {
    }

    public partial class VWStore : IVWStore
    {
    }
}
